package com.example.permission.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity
@Data
@IdClass(UserRoleId.class)
@Table(name = "user_role")
public class UserRole {
    @Id
    private Long userId;
    @Id private Long roleId;
}

